package com.spring.cloud.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2017/3/31.
 */
@FeignClient(value = "spring-cloud-service", fallback = FeignServiceImpl.class)
public interface FeignService {

    @RequestMapping(value = "/sweep", method = RequestMethod.POST)
    String sweep(@RequestParam("name") String name);

    @RequestMapping(value = "/say", method = RequestMethod.GET)
    String say();

}
